package com.demo.jvm.structure.constant;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * CONSTANT_MethodHandle_info {
 * u1 tag;
 * u1 reference_kind;
 * u2 reference_index;
 * }
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CONSTANT_Method_Handle_info extends CONSTANT_info {
    private int referenceKind;
    private int referenceIndex;

    public CONSTANT_Method_Handle_info(byte tag, int tableIndex, int referenceKind, int referenceIndex) {
        super(tag, tableIndex);
        this.referenceKind = referenceKind;
        this.referenceIndex = referenceIndex;
    }
}
